<{include file="_header.html"}>

	<!-- 开始 -->
	<div class="form-div">
		<form id="searchForm" action="" method="POST">
			UID：&nbsp;<input class="text min" type="text" name="uid" value="<{$smarty.post.uid}>" />&nbsp;&nbsp;
			账户状态：&nbsp;<select name="state"><{html_options options=$states selected=$smarty.post.state}></select>&nbsp;&nbsp;
			帐号类型：&nbsp;<select name="type"><{html_options options=$types selected=$smarty.post.type}></select>&nbsp;&nbsp;
			排序：<select name="order">
				<{html_options options=$orders selected=$smarty.post.order}>
			</select>&nbsp;&nbsp;
			<select name="desc">
				<{html_options options=$descs selected=$smarty.post.desc}>
			</select>&nbsp;&nbsp;
			<input class="button" type="submit" value="搜索">
		</form>
	</div>
	
	<div class="list-div">
		<table cellspacing="0" cellpadding="0">
		  <tr>
			<th width="5%">序号</th>
			<th width="5%">UID</th>
			<th class="right" width="6%">账户余额</th>
			<th width="6%">账户状态</th>
			<th width="6%">帐号类型</th>
			<th width="15%">帐号名</th>
			<th width="15%">支付宝</th>
			<th width="8%">注册时间</th>
			<th width="8%">最近登录时间</th>
			<th width="7%">登录次数</th>
			<th>操作</th>
		  </tr>
		  <{section name=i loop=$list}>
		  <tr>
			<td><{$smarty.section.i.iteration+$baseNum}></td>
			<td><{$list[i].id}></td>
			<td class="right"><{math equation="a" a=$list[i].balance format="￥%.2f"}></td>
			<td><{$list[i].state_str}></td>
			<td><{$list[i].type_str}></td>
			<td><{$list[i].username|escape}></td>
			<td><{$list[i].alipay|escape}></td>
			<td><{$list[i].create_time|date_format:"%Y-%m-%d %H:%M:%S"}></td>
			<td>
				<{if $list[i].login_time != "0"}>
				<{$list[i].login_time|date_format:"%Y-%m-%d %H:%M:%S"}>
				<{else}>
				-
				<{/if}>
			</td>
			<td><{$list[i].login_times}></td>
			<td>
				<a href="<{url r='admin/user/login' id=$list[i].id}>" target="_blank">登录</a>
			</td>
		  </tr>
		  <{sectionelse}>
		  <tr>
		  	<td colspan="11">暂无数据</td>
		  </tr>
		  <{/section}>
		</table>
	</div>
	
	<!-- 分页 -->
	<{if $pagination != ""}><div class="page"><{$pagination}></div><{/if}>

<!-- 结束 -->
<{include file="_footer.html"}>
